package com.fcscs.cservice.ws.client.commonservice;

import org.apache.log4j.Logger;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;

import com.fcscs.cservice.ws.schema.commonservice.GetCountriesRequest;
import com.fcscs.cservice.ws.schema.commonservice.GetCountriesResponse;

public class GetCountriesClient extends WebServiceGatewaySupport {

	private static final Logger LOG = Logger.getLogger(GetCountriesClient.class);

	public GetCountriesResponse getCountries(GetCountriesRequest req) {
		GetCountriesResponse resp = (GetCountriesResponse) getWebServiceTemplate().marshalSendAndReceive(req);
		LOG.info("----------resv " + resp.getCountryList());
		return resp;
	}
}

